// FileRowCollection.cpp: implementation of the CFileRowCollection class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Bse/FileRowCollection.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CFileRowCollection::CFileRowCollection()
{

}

CFileRowCollection::~CFileRowCollection()
{

}

CFileRow* CFileRowCollection::GetFirstRow()
{
	return (CFileRow*)m_pHead;
}

CFileRow* CFileRowCollection::GetLastRow()
{
	return (CFileRow*)m_pTail;
}

CFileRow* CFileRowCollection::Traverse(CFileRow *pFileRow, int nDirection)
{
	return (CFileRow*)CList::Traverse(pFileRow,nDirection);
}

void CFileRowCollection::InsertAfter(CFileRow *pCurtRow, CFileRow *pInstRow)
{
	CList::InsertAfter(pCurtRow,pInstRow);
}

int CFileRowCollection::Add(CFileRow *pFileRow)
{
	return CList::Add(pFileRow);
}

CFileRow* CFileRowCollection::GetFileRow(CFileRow *pFileRow)
{
	return (CFileRow*)CList::GetItem(pFileRow);
}


bool CFileRowCollection::ExchangeFileRows(CFileRow *pFileRow1, CFileRow *pFileRow2)
{
	return CList::ExchangeItems(pFileRow1,pFileRow2);
}
